Skip to content

Comments

fix: empty space for the empty description field#5797

Closed
MohammadAlhallaq wants to merge 1 commit intoBookStackApp:developmentfrom
MohammadAlhallaq:fix-empty-space-for-the-description-field
Closed

fix: empty space for the empty description field#5797
MohammadAlhallaq wants to merge 1 commit intoBookStackApp:developmentfrom
MohammadAlhallaq:fix-empty-space-for-the-description-field

Conversation

@MohammadAlhallaq
Copy link

Fix empty description rendering
CLOSES #5724

Centralized empty HTML trimming in HasHtmlDescription.php and updated views to prevent rendering

tags for empty descriptions.

@ssddanbrown
Copy link
Member

Thanks for offering this @MohammadAlhallaq, and sorry for the very delayed response.

Currently this method would impact legitimate scenarios (empty lines between content).
Maybe we use this approach with enough regex, but I instead chose a different approach within commit 229a99b.
Therefore I'm going to close this off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Empty description field adds empty line on save

2 participants